package com.hejing.project03_优尚开发团队人员调度系统.domain;

/**
 * ClassName: Designer
 * Package: com.hejing.project03_优尚开发团队人员调度系统.domain
 * Description:
 *
 * @Author: HeJing
 * @Create: 2023-04-12 11:21
 * @Version: 1.0
 */
public class Designer extends Programmer{
    // 属性
    private double bonus;  // 奖金

    // 构造器

    public Designer() {
    }

    public Designer(int id, String name, int age, double salary, Equipment equipment, double bonus) {
        super(id, name, age, salary, equipment);
        this.bonus = bonus;
    }

    // get set

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    // toString
    @Override
    public String toString(){
        return getDetails() + "\t设计师\t" + getStatus() + "\t" + bonus +
                "\t\t\t" + getEquipment().getDescription();
    }


    public String getDetailsForTeam() {
        return getBasicDetailsForTeam() + "设计师\t" + getBonus();
    }
}
































